import Main from '@/views/Main';

// 不作为Main组件的子页面展示的页面单独写，如下
export const loginRouter = {
    path: '/login',
    name: 'login',
    meta: {
        title: '欢迎登录'
    },
    component: () => import('@/views/login.vue')
};

export const page404 = {
    path: '/*',
    name: 'error-404',
    meta: {
        title: '404-页面不存在'
    },
    component: () => import('@/views/error-page/404.vue')
};

export const page403 = {
    path: '/403',
    meta: {
        title: '403-权限不足'
    },
    name: 'error-403',
    component: () => import('@//views/error-page/403.vue')
};

export const page500 = {
    path: '/500',
    meta: {
        title: '500-服务端错误'
    },
    name: 'error-500',
    component: () => import('@/views/error-page/500.vue')
};

export const preview = {
    path: '/preview',
    name: 'preview',
    component: () => import('@/views/form/article-publish/preview.vue')
};

export const locking = {
    path: '/locking',
    name: 'locking',
    component: () => import('@/views/main-components/lockscreen/components/locking-page.vue')
};

// 作为Main组件的子页面展示并且在左侧菜单显示的路由写在appRouter里
export const appRouter = [
    {
        path: '',
        title: '系统管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/account',
                title: '账户管理',
                name: 'system_account',
                component: (resolve) => require(['@/view/system/account/Account.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/department',
                title: '部门管理',
                name: 'department',
                component: (resolve) => require(['@/view/system/department/Department.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/user',
                title: '用户管理',
                name: 'system_user',
                component: (resolve) => require(['@/view/system/user/User.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/role',
                title: '角色管理',
                name: 'system_role',
                component: (resolve) => require(['@/view/system/role/Role.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/organ',
                title: '组织机构管理',
                name: 'system_organ',
                component: (resolve) => require(['@/view/system/organ/Organ.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/announcement',
                title: '公告管理',
                name: 'system_announcement',
                component: (resolve) => require(['@/view/system/announce/Announce.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            },
            {
                path: '/sysConfig',
                title: '系统参数',
                name: 'system_config',
                component: (resolve) => require(['@/view/system/config/SysConfig.vue'],resolve),
                meta: {
                    keepAlive: false
                }
            }
        ]
    },
    {
        path: '',
        title: '资料管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/advice',
                title: '医师建议管理',
                name: 'basic_info_advice',
                component: (resolve) => require(['@/view/basic/info/Suggest.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/product',
                title: '医药产品管理',
                name: 'basic_info_product',
                component: (resolve) => require(['@/view/basic/info/Product.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/disease',
                title: '病种管理',
                name: 'basic_info_disease',
                component: (resolve) => require(['@/view/basic/info/Diseases.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/project',
                title: '治疗项目管理',
                name: 'basic_info_project',
                component: (resolve) => require(['@/view/basic/info/Project.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/surgical',
                title: '外科项目管理',
                name: 'basic_info_surgical',
                component: (resolve) => require(['@/view/basic/info/SurgicalProject.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/supplies',
                title: '医疗耗材管理',
                name: 'basic_info_supplies',
                component: (resolve) => require(['@/view/basic/info/Supplies.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/assets',
                title: '固定资产管理',
                name: 'basic_info_assets',
                component: (resolve) => require(['@/view/basic/info/Assets.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/office',
                title: '办公用品管理',
                name: 'basic_info_office',
                component: (resolve) => require(['@/view/basic/info/OfficeSupplies.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/equipment',
                title: '医疗设备管理',
                name: 'basic_info_equipment',
                component: (resolve) => require(['@/view/basic/info/Equipment.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/course',
                title: '疗程管理',
                name: 'basic_info_course',
                component: (resolve) => require(['@/view/basic/info/Course.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/service',
                title: '服务项目管理',
                name: 'basic_info_service',
                component: (resolve) => require(['@/view/basic/info/ServiceProject.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/complaints',
                title: '投诉原因管理',
                name: 'basic_info_complaints',
                component: (resolve) => require(['@/view/basic/info/Reason.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/basic/home',
                title: '家庭病房管理',
                name: 'basic_info_home',
                component: (resolve) => require(['@/view/basic/info/Home.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/level',
                title: '会员等级管理',
                name: 'basic_info_level',
                component: (resolve) => require(['@/view/basic/info/MemberLevel.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/brand',
                title: '品牌管理',
                name: 'basic_info_brand',
                component: (resolve) => require(['@/view/basic/info/Brand.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/category/big',
                title: '商品大类管理',
                name: 'basic_info_category_big',
                component: (resolve) => require(['@/view/basic/info/BigCategory.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/category/small',
                title: '商品小类管理',
                name: 'basic_info_category_small',
                component: (resolve) => require(['@/view/basic/info/SmallCategory.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '配置管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/unit',
                title: '计量单位配置',
                name: 'basic_config_unit',
                component: (resolve) => require(['@/view/basic/config/Unit.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/supplier',
                title: '供应商配置',
                name: 'basic_config_supplier',
                component: (resolve) => require(['@/view/basic/config/Supplier.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/repairer',
                title: '维修商配置',
                name: 'basic_config_repairer',
                component: (resolve) => require(['@/view/basic/config/Repairer.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/project/type',
                title: '项目类型配置',
                name: 'basic_config_project_type',
                component: (resolve) => require(['@/view/basic/config/ProjectType.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/abnormal/type',
                title: '异常类型配置',
                name: 'basic_config_abnormal_type',
                component: (resolve) => require(['@/view/basic/config/AbnormalType.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/process/type',
                title: '处理类型配置',
                name: 'basic_config_process_type',
                component: (resolve) => require(['@/view/basic/config/ProcessType.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/inbound/type',
                title: '入库类型配置',
                name: 'basic_config_inbound_type',
                component: (resolve) => require(['@/view/basic/config/InboundType.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/outbound/type',
                title: '出库类型配置',
                name: 'basic_config_outbound_type',
                component: (resolve) => require(['@/view/basic/config/OutboundType.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/inventory/warning',
                title: '库存预警配置',
                name: 'basic_config_inventory_warning',
                component: (resolve) => require(['@/view/basic/config/InventoryWarning.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/season',
                title: '季节提醒配置',
                name: 'season',
                component: (resolve) => require(['@/view/basic/config/SeasonList.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/holiday',
                title: '节假日提醒配置',
                name: 'holiday',
                component: (resolve) => require(['@/view/basic/config/HolidayList.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/sms',
                title: '短信模板配置',
                name: 'sms',
                component: (resolve) => require(['@/view/basic/config/SmsTemplate.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '患者管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/patient/list',
                title: '患者列表',
                name: 'business_patient_list',
                component: (resolve) => require(['@/view/business/patient/Patient.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/score',
                title: '信用分调整记录',
                name: 'score',
                component: (resolve) => require(['@/view/business/patient/ScoreRecord.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/credititem',
                title: '信用制度配置',
                name: 'credit_items',
                component: (resolve) => require(['@/view/business/patient/Point.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '预约管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/reservation/list',
                title: '预约列表',
                name: 'business_reservation_reservation',
                component: (resolve) => require(['@/view/business/reservation/Reservation.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/support/list',
                title: '支持列表',
                name: 'business_reservation_support',
                component: (resolve) => require(['@/view/business/reservation/Support.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/logistics',
                title: '后勤预约',
                name: 'logistics',
                component: (resolve) => require(['@/views/own-space/list/WorkList.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '考勤管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/main',
                title: '主班排班',
                name: 'business_attendance_main',
                component: (resolve) => require(['@/view/business/attendance/MainClass.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/leave',
                title: '请假审批',
                name: 'business_attendance_leave',
                component: (resolve) => require(['@/view/business/attendance/Schedule.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/relaxa',
                title: '调休审批',
                name: 'business_attendance_relaxation',
                component: (resolve) => require(['@/view/business/attendance/Relaxation.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '库房管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/store/inventory',
                title: '库存列表',
                name: 'store_inventory',
                component: (resolve) => require(['@/view/inventory/list/Inventory.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/store/record/inbound',
                title: '入库记录',
                name: 'store_record_inbound',
                component: (resolve) => require(['@/view/inventory/list/InboundRecord.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/store/record/outbound',
                title: '出库记录',
                name: 'store_record_outbound',
                component: (resolve) => require(['@/view/inventory/list/OutboundRecord.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
        ]
    },
    {
        path: '',
        title: '会员管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/member/list',
                title: '会员列表',
                name: 'member_list',
                component: (resolve) => require(['@/view/business/member/MemberList.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '财务管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/center',
                title: '收费中心',
                name: 'finance_center',
                component: (resolve) => require(['@/view/finance/center.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/print',
                title: '打印机配置',
                name: 'finance_print',
                component: (resolve) => require(['@/view/finance/list/PrintConfig.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '',
        title: '统计管理',
        name: '',
        component: Main,
        children: [
            {
                path: '/statistics/reservation',
                title: '预约统计',
                name: 'statistics_reservation',
                component: (resolve) => require(['@/view/statistics/ReservationStatistics.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/statistics/patient',
                title: '患者信息统计',
                name: 'statistics_patient',
                component: (resolve) => require(['@/view/statistics/PatientStatistics.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/statistics/finance',
                title: '财务综合统计',
                name: 'statistics_finance',
                component: (resolve) => require(['@/view/statistics/StatisticsFinancial.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/statistics/complaint',
                title: '投诉统计',
                name: 'statistics_complaint',
                component: (resolve) => require(['@/view/statistics/StatisticsReason.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/statistics/customer',
                title: '客服名单统计',
                name: 'statistics_customer',
                component: (resolve) => require(['@/view/statistics/StatisticsCustomer.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/statistics/income',
                title: '收入来源统计',
                name: 'statistics_income',
                component: (resolve) => require(['@/view/statistics/StatisticsIncome.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    },
    {
        path: '/customer',
        title: '客服中心',
        name: '',
        component: Main,
        children: [
            {
                path: '/refund',
                title: '退费原因调查',
                name: 'refund',
                component: (resolve) => require(['@/view/customer/Refund.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/new',
                title: '初诊信息调查',
                name: 'new',
                component: (resolve) => require(['@/view/customer/NewDiagnosis.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/satis',
                title: '满意度调查',
                name: 'satis',
                component: (resolve) => require(['@/view/customer/Satis.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: '/complaint',
                title: '投诉中心',
                name: 'complaint',
                component: (resolve) => require(['@/view/customer/Complaint.vue'],resolve),
                meta: {
                    keepAlive: true
                }
            }
        ]
    }
];

// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
export const otherRouter = {
    path: '/',
    name: 'otherRouter',
    redirect: '/home',
    component: Main,
    children: [
        { 
            path: 'home',
            title: {i18n: 'home'},
            name: 'home_index',
            component: (resolve) => require(['@/views/home/home.vue'],resolve),
            meta: {
                keepAlive: true
            }
        },
        { 
            path: '/reservation/details',
            title: '预约',
            name: 'reservation_add',
            component: (resolve) => require(['@/view/business/reservation/details/ReservationDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        { path: 'ownspace', title: '个人中心', name: 'ownspace_index', component: () => import('@/views/own-space/user-center.vue') },
        { path: 'order/:order_id', title: '订单详情', name: 'order-info', component: () => import('@/views/advanced-router/component/order-info.vue') }, // 用于展示动态路由
        { path: 'shopping', title: '购物详情', name: 'shopping', component: () => import('@/views/advanced-router/component/shopping-info.vue') }, // 用于展示带参路由
        { path: 'message', title: '消息中心', name: 'message_index', component: () => import('@/views/message/message.vue') },
        { 
            path: '/account/details',
            title: '创建账户',
            name: 'system_account_add',
            component: (resolve) => require(['@/view/system/account/AccountDetails.vue'],resolve),
            meta: {
                keepAlive: true
            }
        },
        { 
            path: '/user/details',
            title: '用户-基本信息',
            name: 'system_user_add',
            component: (resolve) => require(['@/view/system/user/UserDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        { 
            path: '/user/roleDetails',
            title: '角色分配',
            name: 'system_user_role',
            component: (resolve) => require(['@/view/system/user/UserRoleDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        { 
            path: '/user/organDetails',
            title: '组织机构权限分配',
            name: 'system_user_organ',
            component: (resolve) => require(['@/view/system/user/UserOrganDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        { 
            path: '/role/details',
            title: '创建角色',
            name: 'system_role_add',
            component: (resolve) => require(['@/view/system/role/RoleDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/role/roleMenus',
            title: '权限分配',
            name: 'system_role_auth',
            component: (resolve) => require(['@/view/system/role/RoleMenus.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/patient/details',
            title: '创建患者',
            name: 'business_patient_add',
            component: (resolve) => require(['@/view/business/patient/PatientDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/suggest/details',
            title: '医师建议-基本信息',
            name: 'basic_info_advice_add',
            component: (resolve) => require(['@/view/basic/info/details/SuggestDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/product/details',
            title: '医药产品-基本信息',
            name: 'basic_info_product_add',
            component: (resolve) => require(['@/view/basic/info/details/ProductDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/disease/details',
            title: '病种-基本信息',
            name: 'basic_info_disease_add',
            component: (resolve) => require(['@/view/basic/info/details/DiseasesDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/project/details',
            title: '治疗项目-基本信息',
            name: 'basic_info_project_add',
            component: (resolve) => require(['@/view/basic/info/details/ProjectDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/surgical/details',
            title: '外科项目-基本信息',
            name: 'basic_info_surgical_add',
            component: (resolve) => require(['@/view/basic/info/details/SurgicalProjectDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/supplies/details',
            title: '耗材-基本信息',
            name: 'basic_info_supplies_add',
            component: (resolve) => require(['@/view/basic/info/details/SuppliesDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/assets/details',
            title: '固定资产-基本信息',
            name: 'basic_info_assets_add',
            component: (resolve) => require(['@/view/basic/info/details/AssetsDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/office/details',
            title: '办公用品-基本信息',
            name: 'basic_info_office_add',
            component: (resolve) => require(['@/view/basic/info/details/OfficeSuppliesDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/equipment/details',
            title: '医疗设备-基本信息',
            name: 'basic_info_equipment_add',
            component: (resolve) => require(['@/view/basic/info/details/EquipmentDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/course/details',
            title: '疗程-基本信息',
            name: 'basic_info_course_add',
            component: (resolve) => require(['@/view/basic/info/details/CourseDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/service/details',
            title: '服务项目-基本信息',
            name: 'basic_info_service_add',
            component: (resolve) => require(['@/view/basic/info/details/ServiceProjectDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/home/details',
            title: '家庭病房-基本信息',
            name: 'basic_info_home_add',
            component: (resolve) => require(['@/view/basic/info/details/HomeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/level/details',
            title: '会员等级-基本信息',
            name: 'basic_info_level_add',
            component: (resolve) => require(['@/view/basic/info/details/MemberLevelDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/brand/details',
            title: '品牌-基本信息',
            name: 'basic_info_brand_add',
            component: (resolve) => require(['@/view/basic/info/details/BrandDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/category/big/details',
            title: '商品大类-基本信息',
            name: 'basic_info_category_big_add',
            component: (resolve) => require(['@/view/basic/info/details/BigCategoryDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/category/small/details',
            title: '商品小类-基本信息',
            name: 'basic_info_category_small_add',
            component: (resolve) => require(['@/view/basic/info/details/SmallCategoryDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/unit/details',
            title: '计量单位-基本信息',
            name: 'basic_config_unit_add',
            component: (resolve) => require(['@/view/basic/config/details/UnitDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/supplier/details',
            title: '供应商-基本信息',
            name: 'basic_config_supplier_add',
            component: (resolve) => require(['@/view/basic/config/details/SupplierDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/repairer/details',
            title: '维修商-基本信息',
            name: 'basic_config_repairer_add',
            component: (resolve) => require(['@/view/basic/config/details/RepairerDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/project/type/details',
            title: '项目类型-基本信息',
            name: 'basic_config_project_type_add',
            component: (resolve) => require(['@/view/basic/config/details/ProjectTypeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/abnormal/type/details',
            title: '异常类型-基本信息',
            name: 'basic_config_abnormal_type_add',
            component: (resolve) => require(['@/view/basic/config/details/AbnormalTypeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/process/type/details',
            title: '处理类型-基本信息',
            name: 'basic_config_process_type_add',
            component: (resolve) => require(['@/view/basic/config/details/ProcessTypeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/inbound/type/details',
            title: '入库类型-基本信息',
            name: 'basic_config_inbound_type_add',
            component: (resolve) => require(['@/view/basic/config/details/InboundTypeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/outbound/type/details',
            title: '出库类型-基本信息',
            name: 'basic_config_outbound_type_add',
            component: (resolve) => require(['@/view/basic/config/details/OutboundTypeDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/inventory/warning/details',
            title: '库存预警-基本信息',
            name: 'basic_config_inventory_warning_add',
            component: (resolve) => require(['@/view/basic/config/details/InventoryWarningDetails.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/medical',
            title: '电子病历',
            name: 'medical_info',
            component: (resolve) => require(['@/view/business/medical/Index.vue'],resolve),
            meta: {
                keepAlive: false
            }
        },
        {
            path: '/medical/execute',
            title: '医嘱执行',
            name: 'execute_details',
            component: (resolve) => require(['@/view/business/reservation/details/MedicalExecute.vue'],resolve),
            meta: {
                keepAlive: false
            }
        }
    ]
};

// 所有上面定义的路由都要写在下面的routers里
export const routers = [
    loginRouter,
    otherRouter,
    preview,
    locking,
    ...appRouter,
    page500,
    page403,
    page404
];
